<table class="exampleTable" > 
	<thead> 
		<tr> 
			<th colspan="3">页面访问</th>
		</tr> 
	</thead> 
	 <tbody> 
	 	<tr> 
			<td  width="30%">请求路径</td> 
			<td  width="70%" colspan="2">user/control/replyList.htm</td>
		</tr>
		<tr> 
			<td>请求方式</td> 
			<td colspan="2">GET</td>
		</tr>
		<tr> 
			<td>请求参数</td> 
			<td colspan="2"><a style="color: #317ee7" onclick="anchorJump('#anchor_600'); return false;">参数表</a></td> 
		</tr>
		<tr> 
			<td rowspan="7">请求返回</td> 
			<td>话题分页</td> 
			<td width="30%" >
				变量：pageView<br>
				类型：<a style="color: #317ee7" onclick="anchorJump('#anchor_10'); return false;">PageView</a>
			</td>
		</tr> 
	</tbody> 
</table>

<table class="exampleTable" > 
	<thead> 
		<tr> 
			<th colspan="3">页面访问 - AJAX方式</th>
		</tr> 
	</thead> 
	 <tbody> 
	 	<tr> 
			<td  width="30%">请求路径</td> 
			<td  width="70%" colspan="2">user/control/replyList.htm</td>
		</tr>
		<tr> 
			<td>请求方式</td> 
			<td colspan="2">GET</td>
		</tr>
		<tr> 
			<td>自定义请求头</td> 
			<td colspan="2">协议头：X-Requested-With  值：XMLHttpRequest</td>
		</tr>
		<tr> 
			<td>请求参数</td> 
			<td colspan="2"><a style="color: #317ee7" onclick="anchorJump('#anchor_600'); return false;">参数表</a></td> 
		</tr>
		<tr> 
			<td>请求返回</td> 
			<td>JSON格式值 类型:<a style="color: #317ee7" onclick="anchorJump('#anchor_10'); return false;">PageView</a></td>
		</tr>
	</tbody> 
</table>

<table id="anchor_10" class="exampleTable" > 
	<thead> 
		<tr> 
			<th colspan="3">分页 PageView</th>
		</tr> 
		<tr> 
			<th width="30%">变量</th> 
			<th width="30%">类型</th>
			<th width="40%">说明</th> 
		</tr> 
	</thead> 
	<tbody> 
		<tr> 
			<td>records</td> 
			<td>List&lt<a style="color: #317ee7" onclick="anchorJump('#anchor_20'); return false;">Reply</a>></td>
			<td>数据展示列表</td>
		</tr>
		<tr> 
			<td>pageIndex</td> 
			<td><a style="color: #317ee7" onclick="anchorJump('#anchor_30'); return false;">PageIndex</a></td>
			<td>页码索引</td>
		</tr>
		<tr> 
			<td>totalpage</td> 
			<td>long</td>
			<td>总页数</td>
		</tr>
		<tr> 
			<td>maxresult</td> 
			<td>long</td>
			<td>每页显示记录数</td>
		</tr>
		<tr> 
			<td>currentpage</td> 
			<td>long</td>
			<td>当前页</td>
		</tr>
		<tr> 
			<td>pagecount</td> 
			<td>long</td>
			<td>页码显示总数</td>
		</tr>
		<tr> 
			<td>onUrl</td> 
			<td>String</td>
			<td>上一页URL</td>
		</tr>
		<tr> 
			<td>nextUrl</td> 
			<td>String</td>
			<td>下一页URL</td>
		</tr>
	</tbody> 
</table>
<table id="anchor_30" class="exampleTable" > 
	<thead> 
		<tr> 
			<th colspan="3">分页索引 PageIndex</th>
		</tr> 
		<tr> 
			<th width="30%">变量</th> 
			<th width="30%">类型</th>
			<th width="40%">说明</th> 
		</tr> 
	</thead> 
	<tbody> 
		<tr> 
			<td>startindex</td> 
			<td>long</td>
			<td>分页开始索引</td>
		</tr>
		<tr> 
			<td>endindex</td> 
			<td>long</td>
			<td>分页结束索引</td>
		</tr>
	</tbody> 
</table>
<table id="anchor_20" class="exampleTable" > 
	<thead> 
		<tr> 
			<th colspan="3">回复 Reply</th>
		</tr> 
		<tr> 
			<th width="30%">变量</th> 
			<th width="30%">类型</th>
			<th width="40%">说明</th> 
		</tr> 
	</thead> 
	<tbody> 
		<tr> 
			<td>id</td> 
			<td>Long</td>
			<td>回复Id</td>
		</tr>
		<tr> 
			<td>topicId</td> 
			<td>Long</td>
			<td>话题Id</td>
		</tr>
		<tr> 
			<td>topicTitle</td> 
			<td>String</td>
			<td>话题标题</td>
		</tr>
		<tr> 
			<td>content</td> 
			<td>String</td>
			<td>回复内容</td>
		</tr>
		<tr> 
			<td>postTime</td> 
			<td>Date</td>
			<td>回复时间</td>
		</tr>
		<tr> 
			<td>lastUpdateTime</td> 
			<td>Date</td>
			<td>最后修改时间</td>
		</tr>
		<tr> 
			<td>commentId</td> 
			<td>Long</td>
			<td>评论Id</td>
		</tr>
		<tr> 
			<td>userName</td> 
			<td>String</td>
			<td>用户名称</td>
		</tr>
		<tr> 
			<td>isStaff</td> 
			<td>boolean</td>
			<td>是否为员工</td>
		</tr>
		<tr> 
			<td>status</td> 
			<td>Integer</td>
			<td>状态 10.待审核 20.已发布</td>
		</tr>
	</tbody> 
</table>

<table id="anchor_600" class="exampleTable" > 
	<thead>
		<tr> 
			<th colspan="5">请求参数</th>
		</tr>
		<tr> 
			<th width="30%">参数</th> 
			<th width="20%">类型</th> 
			<th width="10%">是否必填</th> 
			<th width="40%" colspan="2">说明</th> 
		</tr> 
	</thead> 
	 <tbody> 
	 	<tr> 
			<td>page</td> 
			<td>Integer</td>
			<td>否</td>
			<td>页码</td> 
		</tr>	
	</tbody> 
</table>

<h2 style="margin:0;padding:0; margin-top: 10px;">示例</h2>
<textarea name="exampleCode">

<#-- 回复分页 -->
<#if pageView.records?exists && pageView.records?size gt 0 >    
	<#list pageView.records as reply>
		<#if reply.status == 20 >
			<a href="thread?topicId=${reply.topicId}&commentId=${reply.commentId}" target="_blank" class="link">${reply.content}</a>	
		<#elseif reply.status == 10 >
			${reply.content}
		</#if>
		<#-- 回复话题标题 -->
		<a href="thread?topicId=${reply.topicId}" target="_blank" class="link">${reply.topicTitle}</a>	
	</#list>
</#if>

</textarea>
